<?php
namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\Vote;


class IndexController extends Controller
{
    public function index()
    {
    	$areas = [];
        return view('hrs.index',compact('areas'));
    }


    public function vote()
    {
    	return view('vote.index');
    }

    public function voteSave(Request $request)
    {
    	$data = $request->except(['_token']);

    	$flag = Vote::create($data);
    	$rs['status'] = true;
    	return response()->json($rs);
    }

    
    
}
